Make constants in batch submission logic configurable.#396
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces configurable parameters for Espresso batch submission receipt verification, including maximum block wait times, safety timeouts, and retry delays. These settings are integrated into the CLI, the batcher service configuration, and the transaction submission worker logic. Feedback was provided regarding the duplication of default values for these new parameters across different files, suggesting the use of shared constants to improve maintainability.
|
Claude finished @philippecamacho's task in 1m 36s —— View job Code Review: Make constants in batch submission logic configurable
Overall this is a clean, well-scoped PR. The functional options pattern is followed consistently, defaults are preserved, and the plumbing from CLI → service → driver → submitter is correct. A few observations: Validation of zero/negative values The new config fields ( Duplicated defaults (echoing Gemini's feedback) I agree with the existing review thread — the magic values
Converting No test coverage for the new configurability There are no tests for Minor: constant naming convention The Looks good overall — the main actionable item is the input validation. |
9adb3bf to
9ae1806
Compare
deb7985
into
celo-integration-rebase-16.2
* Make constants in batch submission logic configurable. * Define verify receipt default values as shared exported constants * Validate verify-receipt tuning flags are non-zero when Espresso is enabled * Fix integration test failures introduced by verify-receipt validation
Closes https://app.asana.com/1/1208976916964769/project/1209976130071762/task/1213432243074583
This PR:
VERIFY_RECEIPT_MAX_BLOCKS,VERIFY_RECEIPT_SAFETY_TIMEOUT, andVERIFY_RECEIPT_RETRY_DELAYruntime-configurable instead of compile-time constantsThis PR does not:
How to test this PR